package com.snopy.designPattern.structure.facade;

import com.snopy.designPattern.structure.facade.impl.Circle;
import com.snopy.designPattern.structure.facade.impl.Rectangle;
import com.snopy.designPattern.structure.facade.inter.Shape;

/**
 * @author snopy
 * @version 1.0.0
 * @classname ShapeMarker
 * @description
 * @email 77912204@qq.com
 * @date 2022/03/03 13:45
 */
public class ShapeMarker {
    private Shape circle;
    private Shape rectangle;
    private Shape square;
    public ShapeMarker() {
        this.circle = new Circle();
        this.rectangle = new Rectangle();
        this.square = new Rectangle();
    }
    public void drawCircle(){
        circle.draw();
    }
    public void drawRectangle(){
        rectangle.draw();
    }
    public void drawSquare(){
        square.draw();
    }
}
